package com.gcosc.hly.codejava.service;

import com.gcosc.hly.codejava.entity.AnswerItem;
import com.gcosc.hly.codejava.entity.TopicResult;

import java.util.List;

public interface TopicTestService {

    /**
     * 执行用户代码
     * */
    boolean execute(Class<?>[] paramsType, Object[] params, Object result, Object code) throws Exception;

    /**
     * 比对测试结果
     * */
    boolean myEq(Object o, Object j);

    /**
     * 测试代码
     * */
    boolean test(List<TopicResult> topicResult, AnswerItem answerItem);

}
